
<div id="left">
    <!--                        --><?//= $this->partial('partials/right_login.phtml', array('loginForm' => $this->loginForm, 'regForm' => $this->regForm)) ?>
<div style="min-height:275px;">    <ul class="right-menu">

               <? $auth = Zend_Auth::getInstance()?>
        <? if($auth->hasIdentity()): ?>

            <li style="margin-top: -46px;"><div class="text-menu2" id="div8" style="top:67px;"><a class="ssulka" href="/user" style="    color: white;       margin-left: 3px;">My Account</a></div><img id="money" class="img-menu "
                                                                                                    src="./pictures/gold_button.png">

        </li>
<!--        Буферизация рисунка-->
        <div style="display: none;"><img src="/pictures/gold_hover.png"></div>
<!--        Hover-->
          <script>
                 $(document.body).ready(function(){
                       $('.firstdefault').css('margin-top','-28px');
                        $('#div8').mouseover(function(){

                           $('#div8+img').attr('src','/pictures/gold_hover.png');
                           $('#div8 a').css('color','brown');
                        });
                        $('#div8').mouseout(function(){

                           $('#div8+img').attr('src','/pictures/gold_button.png');
                            $('#div8 a').css('color','white');
                        });
                 });

                </script>
        <? endif;?>



        <li style="margin-top:-45px" class="firstdefault"><div class="text-menu2" id="div4" style="top: 69px;"><a class="ssulka" href="map/maps" >Treasure Maps</a></div><img class="img-menu "
                                                                                                     src="./pictures/menu.png">
        </li>

        <li><div class="text-menu2" id="div6"><a class="ssulka" href="page/4" >Report a Trove</a></div><img class="img-menu "
                                                                                                    src="./pictures/menu.png">
        </li>
        <li><div class="text-menu2" id="div7"><a class="ssulka" href="/report" >Winners</a></div><img class="img-menu "
                                                                                                    src="./pictures/menu.png">
        </li>




    </ul>
  </div>
<!-- --><?//print_r($this->mapInfo)?>

         <div class="remain">
        <a href="/view/<?=$this->mapInfo['id']?>"> <h3><?=$this->mapInfo['title']?></h3>
         <img src="<?=$this->mapInfo['url']?>" alt="" ></a>
        <? if($this->timer > 0): ?>
         <div class="time">
             <div class="next_quest">Next quest in:</div>
            <b><span>00</span> Hours : </b>
            <b><span>00</span> Minutes</b>
         </div>

            <script type="text/javascript">
                $().ready(function() {

                    var timeLeft = <?= $this->timer ?>;
                    var timer = setInterval(function() {
                        var timestamp = timeLeft;

                        var seconds = timestamp % 60;
                        timestamp = parseInt(timestamp / 60);
                        var minutes = timestamp % 60;
                        timestamp = parseInt(timestamp / 60);
                        var hours = timestamp;

                        var values = [hours, minutes, seconds];

                        $('span', '.remain').each(function() {
                            $(this).text(values.shift());
                        });
                        timeLeft = timeLeft - 1;
                    }, 1000);

                });
            </script>
        <? else : ?>
            There is no currently available maps.
        <? endif; ?>
        </div>
</div>